import request from '@/utils/request'

// 查询用量区间设置列表
export function listDosagerange(query) {
  return request({
    url: '/basedata/dosagerange/list',
    method: 'get',
    params: query
  })
}

// 查询用量区间设置详细
export function getDosagerange(id) {
  return request({
    url: '/basedata/dosagerange/' + id,
    method: 'get'
  })
}

// 新增用量区间设置
export function addDosagerange(data) {
  return request({
    url: '/basedata/dosagerange',
    method: 'post',
    data: data
  })
}

// 修改用量区间设置
export function updateDosagerange(data) {
  return request({
    url: '/basedata/dosagerange',
    method: 'put',
    data: data
  })
}

// 删除用量区间设置
export function delDosagerange(id) {
  return request({
    url: '/basedata/dosagerange/' + id,
    method: 'delete'
  })
}
